const path = require("path");
const basename = "faksdj/sdfa.tst";
console.log(path.extname(basename));
